/*
*VIP广告三个大图
 */
import React from 'react'
import './VipAd.css'
import  novip from './novip.png'
import  vip from './vip.png'
import  svip from './svip.png'
class VipAd extends React.Component{
    constructor(props){
        super(props);
        this.state = {
            VipAd_data:[]
        };
    }
    componentDidMount() {
        this.setState({
            VipAd_data:this.props.data
        })
    }
    render() {
        return (
            <div>
                {
                    this.props.data[0]?
                        <div className="VipAd_content">
                            <div className="VipAd_left">
                                <a href={this.props.data[0].web_url}><img src={this.props.data[0].image_url}/></a>
                            </div>
                            <div className='VipAd_right'>
                                <span><a href={this.props.data[1].web_url}><img src={this.props.data[1].image_url}/></a></span>
                                <span><a href={this.props.data[2].web_url}><img src={this.props.data[2].image_url}/></a></span>
                            </div>
                        </div>:''
                }

            </div>
        )
    }
}

export default VipAd